package com.example.weight.navigation;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.example.weight.R;
import com.example.weight.greenSeasons.flocculation.xuningRoleSelectActivity;
import com.example.weight.greenSeasons.flocculation.xuninggongyi;
import com.example.weight.greenSeasons.flocculation.xuningguzhang;
import com.example.weight.greenSeasons.flocculation.xuningyongdian;
import com.example.weight.householdWaste.ChoseRoleActivity;
import com.hjq.bar.OnTitleBarListener;
import com.hjq.bar.TitleBar;

public class ShengchanxianchangXuningNavigationActivity extends AppCompatActivity {
    private TitleBar titleBar;
    String name, factory;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shengchanxianchang_xuning_nav);
        Intent previousIntent = getIntent();
        name = previousIntent.getStringExtra("name");
        factory = previousIntent.getStringExtra("factory");
        titleBar=findViewById(R.id.titleBar);
        titleBar.setOnTitleBarListener(new OnTitleBarListener() {

            @Override
            public void onLeftClick(View v) {
                ShengchanxianchangXuningNavigationActivity.this.finish();
            }

            @Override
            public void onTitleClick(View v) {

            }

            @Override
            public void onRightClick(View v) {

            }


        });
    }

    public void turnFacCheck(View view) {
        Intent intent =new Intent(ShengchanxianchangXuningNavigationActivity.this, ChoseRoleActivity.class);
        intent.putExtra("name", name);
        intent.putExtra("factory", factory);
        intent.putExtra("fName", "xuningshebeijiancha");
        startActivity(intent);
    }

    public void turnDay(View view) {
        Intent intent =new Intent(ShengchanxianchangXuningNavigationActivity.this, xuningRoleSelectActivity.class);
        intent.putExtra("name", name);
        intent.putExtra("factory", factory);
        intent.putExtra("type", "daily");
        startActivity(intent);
    }

}
